#include <stdio.h>
#include "main.h"

#include "node.h"

int main()
{
    List list = list_init();
    int number;
    do {
        scanf("%d", &number);
        if (number != -1){
            node_add(&list, number);
        }
    } while (number != -1);
    node_print(list);
    node_free(&list);
    return 0;
} 